Python Breakpoints
Sublime Text plugin to set Python breakpoints
Details
Installs
- Total 66K
- Win 37K
- Mac 13K
- Linux 16K
Apr 21 | Apr 20 | Apr 19 | Apr 18 | Apr 17 | Apr 16 | Apr 15 | Apr 14 | Apr 13 | Apr 12 | Apr 11 | Apr 10 | Apr 9 | Apr 8 | Apr 7 | Apr 6 | Apr 5 | Apr 4 | Apr 3 | Apr 2 | Apr 1 | Mar 31 | Mar 30 | Mar 29 | Mar 28 | Mar 27 | Mar 26 | Mar 25 | Mar 24 | Mar 23 | Mar 22 | Mar 21 | Mar 20 | Mar 19 | Mar 18 | Mar 17 | Mar 16 | Mar 15 | Mar 14 | Mar 13 | Mar 12 | Mar 11 | Mar 10 | Mar 9 | Mar 8 | Mar 7 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 0 | 1 | 2 | 5 | 2 | 1 | 3 | 4 | 6 | 2 | 0 | 1 | 4 | 4 | 2 | 1 | 2 | 1 | 0 | 3 | 2 | 0 | 2 | 2 | 1 | 6 | 4 | 2 | 2 | 0 | 1 | 5 | 4 | 2 | 2 | 5 | 2 | 3 | 3 | 2 | 1 | 1 | 2 | 2 | 2 | 4 |
Mac | 2 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 0 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 2 | 1 | 2 | 0 | 2 | 0 | 0 | 1 | 0 | 0 | 0 | 0 | 1 | 1 | 0 | 1 | 2 | 0 |
Linux | 1 | 0 | 4 | 0 | 3 | 1 | 1 | 0 | 1 | 1 | 1 | 3 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 0 | 2 | 0 | 1 | 0 | 1 | 2 | 0 | 1 | 1 | 0 | 1 | 1 | 1 | 0 | 1 | 0 | 0 | 1 | 0 | 0 | 2 | 1 | 1 | 1 |
Readme
- Source
- raw.githubusercontent.com
Sublime Text Python Breakpoints
This is a Sublime Text plugin allowing to quickly set Python breakpoints by injecting set_trace() call of pdb or other debugger of your choice.
Features
- breakpoint color highlighting, gutter icons
- auto indentation, auto save on toggle (off by default, configurable)
- your source file stores all breakpoints; plugin detects and recreates them on next load
- support for user comments to help navigate among many breakpoints
Screenshot
Install
Through Package Control (recommended):
Command Palette
> Package Control: Install Package
> Python Breakpoints
From GitHub: Clone this repository into your version/platform specific Packages directory. Example for Mac and ST2 (note the space in the target directory name):
cd ~/Library/Application Support/Sublime Text 2/Packages
git clone https://github.com/obormot/PythonBreakpoints 'Python Breakpoints'
Usage
Command Palette
> Python Breakpoints: ...
Toggle
a breakpoint at current line (orctrl+shift+b
)Goto
a selected breakpoint (orctrl+shift+g
, orMenu
>Goto
>Goto Python Breakpoint...
)Clear All
breakpoints in current file (orMenu
>Tools
>Breakpoints
>Clear All Python Breakpoints
)
If one or multiple lines of code are selected, the Toggle command will wrap the selected lines in a try-except statement and a new breakpoint will be added under the except: section.
Settings
Preferences
> Package Settings
> Python Breakpoints
Caveats
- only space indentation is supported
- in some code fragments the plugin may incorrectly indent the breakpoint; in such cases just use Indent/Unindent keyboard shortcuts to move it into desired position